//
//  Header.h
//  haojia
//
//  Created by 徐宏飞 on 16/4/11.
//  Copyright © 2016年 徐宏飞. All rights reserved.
//

#ifndef Header_h
#define Header_h


//打印
#if DEBUG

#define NSLog(FORMAT, ...) fprintf(stderr,"[%s:%d行] %s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);

#else

#define NSLog(FORMAT, ...) nil

#endif

//屏幕尺寸
#define FULL_SCREEN [[UIScreen mainScreen] bounds]
#define CURRENTSCEEN [UIScreen mainScreen].bounds
//屏幕大小
#define FULL_SIZE [[UIScreen mainScreen] bounds].size
//屏幕宽
#define SCREEN_WIDTH [[UIScreen mainScreen] bounds].size.width
//屏幕高
#define SCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height
//坐标点
#define WID [[UIScreen mainScreen] bounds].size.width / 375
#define HEI [[UIScreen mainScreen] bounds].size.height / 667

//颜色
#define RGBA(R/*红*/, G/*绿*/, B/*蓝*/, A/*透明*/) \
[UIColor colorWithRed:R/255.f green:G/255.f blue:B/255.f alpha:A]

#define WHITE [UIColor whiteColor]
#define BLACK [UIColor blackColor]
#define CLEAR [UIColor clearColor]

#define COLOR_SELECTED [UIColor colorWithRed:61/255.f green:177/255.f blue:152/255.f alpha:1]



#endif /* Header_h */
